package com.wyvoid.forum.web.action.admin;

import com.wyvoid.forum.web.action.BaseAction;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.action.RedirectResolution;
import net.sourceforge.stripes.action.UrlBinding;
import net.sourceforge.stripes.action.DefaultHandler;

/**
 * <p>51void.com</p>
 * User:cjp
 * Date: 2007-5-26
 * Time: 8:01:13
 */
@UrlBinding("/admin/logout.do")
public class LogoutAction extends BaseAction {
    @DefaultHandler
    public Resolution logout(){
        context.logout();
        return new RedirectResolution("/admin");
    }
}
